package cn.ppool.xmlmapper.builder.parse.parsetest;

import lombok.Data;

import java.util.ArrayList;

@Data
public class BitType {


    private String word;
    private ConditionModel model;
    private String operate;
    private TYPE_ENUM type;

    public BitType(TYPE_ENUM tp, String val) {
        if (tp == TYPE_ENUM.operate) {
            setOperate(val);
        } else if (tp == TYPE_ENUM.word) {
            setWord(val);
        } else if (tp == TYPE_ENUM.string) {
            setWord(val);
        }
        setType(tp);
    }


    public BitType(ConditionModel val) {
        model = val;
        type = TYPE_ENUM.model;
    }

    public BitType(){

    }

}
